﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FluentNHibernate.Mapping;

namespace cludg.Web.RateContentModule.Repository.NHibernate
{
	public class RateHistoryMapping : ClassMap<Domain.RateHistory>
	{
		public RateHistoryMapping()
		{
			Table("RateHistory");
			Not.LazyLoad();
			Id(x => x.Id)
				.GeneratedBy.Custom<cludg.Repository.NHibernate.Utils.IdentifierGenerator>();
			Map(x => x.Rate);
			Map(x => x.UserId)
				.Length(50);
			Map(x => x.StoryId)
				.Length(50);
//			References(x => x.Story)
//				.Column("StoryId")
//				.LazyLoad();
		}
	}
}